package com.wt.service;

import com.wt.pojo.Distributor;
import com.wt.util.Pager;
import com.wt.util.Pagination;
import com.wt.vo.DistributorIncome;

import java.math.BigDecimal;

public interface DistributorService {
	Distributor getDistributorById(Integer id);
	/**
	 * 审核列表数据
	 * @param beginDate
	 * @param endDate
	 * @param status
	 * @param pager
	 * @return
	 */
	Pagination<Distributor> findList(Integer beginDate, Integer endDate, Integer status, Pager pager);
	/**
	 * 根据id获取对象
	 * @param id
	 * @return
	 */
	Distributor getDistributor(Integer id);
	/**
	 * 审核
	 * @param id
	 * @param status
	 * @param proportion
	 * @param reviewStatus
	 * @return
	 */
	public int updateAuditing(Integer id,Integer status, BigDecimal proportion,Integer reviewStatus); 
	
	/**
	 * 复核列表数据
	 * @param beginDate
	 * @param endDate
	 * @param status
	 * @param pager
	 * @return
	 */
	Pagination<Distributor> findReviewList(Integer beginDate, Integer endDate,Integer reviewStatus, Pager pager);
	
	/**
	 * 分成复核
	 * @param id
	 * @param reviewStatus
	 * @return
	 */
	public int updateReviewAuditing(Integer id,Integer reviewStatus);

    Distributor selectDistributor(Integer id);
    com.wt.util.Pagination<DistributorIncome> selectDistributorInCome(Integer id, Long timeStart, Long timeEnd, com.wt.util.Pager pager);

    Long selectCountOrders();
    
    public int updateCommissionWithdraw(Integer id, BigDecimal commissionWithdraw);
}
